#include "fileops.h"
int pwd_command(const char*root_dir,char*cwd,char *result_path){
    int ret=is_base(cwd,root_dir);
    int root_dir_len=strlen(root_dir);
    const char*sub_path=cwd+root_dir_len;
    if(sub_path[0]=='\0'){
        strcpy(result_path,"/");
    }else{
    strcpy(result_path,sub_path);}
    return 0;
}

